package com.huawei.appgallery.forum.base.card.bean;

import android.text.TextUtils;
import com.huawei.appgallery.jsonkit.api.JsonBean;
import java.io.Serializable;
import o.bqx;

public class ImageInfo extends JsonBean implements Serializable {
    public static final String IMG_INFO_SPLIT = "_";
    private static final String TAG = "ImageInfo";
    private static final long serialVersionUID = 6203407664835719758L;
    long fileId_;
    String fileWidthHeight_;
    String imgCompress_;
    String img_;

    public long ॱ() {
        return this.fileId_;
    }

    public void ˊ(long j) {
        this.fileId_ = j;
    }

    public String ˊ() {
        return this.img_;
    }

    public String ˋ() {
        return this.imgCompress_;
    }

    public void ˏ(String str) {
        this.img_ = str;
    }

    public void ˊ(String str) {
        this.imgCompress_ = str;
    }

    public void ˋ(String str) {
        this.fileWidthHeight_ = str;
    }

    public int ˎ() {
        int i = 0;
        if (!TextUtils.isEmpty(this.fileWidthHeight_)) {
            String[] split = this.fileWidthHeight_.split("_");
            if (split.length == 2) {
                try {
                    i = Integer.parseInt(split[0]);
                } catch (Throwable e) {
                    bqx.ˊ(TAG, "getImgWidth e", e);
                }
            }
        }
        return i;
    }

    public int ˏ() {
        if (!TextUtils.isEmpty(this.fileWidthHeight_)) {
            String[] split = this.fileWidthHeight_.split("_");
            if (split.length == 2) {
                try {
                    return Integer.parseInt(split[1]);
                } catch (Throwable e) {
                    bqx.ˊ(TAG, "getImgHeight e", e);
                }
            }
        }
        return 0;
    }
}
